package com.example.webapp.repository;

import com.example.webapp.entity.RequestHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface RequestHistoryRepository extends JpaRepository<RequestHistory, Long> {
    Page<RequestHistory> findAllByOrderByCreatedAtDesc(Pageable pageable);
    Page<RequestHistory> findByUrlContainingAndMethodContainingOrderByCreatedAtDesc(
        String url, String method, Pageable pageable);
} 